#!-*- encoding:utf8 -*-
from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class Group(models.Model):
    name = models.CharField(max_length=50)  #报警组名
    detail = models.CharField(max_length=100)   #组描述
    user = models.CharField(max_length=1000)   #组内成员
    #mode = models.CharField(max_length=10)   #报警方式
    
    def __unicode__(self):
        return "%s " % (self.name)

    def __str__(self):
        return "%s " % (self.name)
